package cn.bdqn.service;

import cn.bdqn.pojo.Employees;
import cn.bdqn.pojo.Integral;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface EmployeesService {
    //查询我的信息
    List<Employees> listAllByid321(@Param("id") Integer id);
    //微信登录
    Employees findByOpenid(String openid);
    List<Employees> listAll();

    int del(Integer id);

    int insert(Employees employees);
    //@Param("name")String name,@Param("schoolName")String schoolName,@Param("className") String className,@Param("address")String address
    //查询总积分
    List<Employees> listAllByid(Integer id);
    //查询积分详情
    List<Integral> listAllByid123(Integer id);
    //查全部
    List<Integral> getEmps(Integer id, Integer pn);

    //查询数据总条数
    Integer getCount(Integer id);
    Integer upd(Employees employees);
    Employees getById(int id);
    Integer login(Employees employees);

    String password(Employees employees);

    //签到积分+5
    int updateScoer(Employees employees);

    //<!--根据id查询-->
    @Transactional
    Employees selectByPrimaryKey(Integer id);
    //<!--根据名字查询-->
    @Transactional
    Employees selectByUserName(String name);
    //根据输入的邮箱查询全部
    @Transactional
    Employees selectByUserNameOrEmail(String userNameOrEmail);
    // <!--修改密码-->
    @Transactional
    int updateByPrimaryKey(Employees record);
}
